package com.tc168.cp306.b06.fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;

import com.tc168.cp306.b06.R;
import com.tc168.cp306.b06.Utils.ToastUtil;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;


/**
 * A simple {@link Fragment} subclass.
 * <p>
 * 意见反馈
 */
public class YijianFragment extends Fragment {


    @BindView(R.id.etone)
    EditText etone;
    @BindView(R.id.ettwo)
    EditText ettwo;
    @BindView(R.id.aaa)
    LinearLayout aaa;
    @BindView(R.id.fasong)
    Button fasong;
    Unbinder unbinder;

    public YijianFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_yijian, container, false);
        unbinder = ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @OnClick(R.id.fasong)
    public void onViewClicked() {
        etone.setText("");
        ettwo.setText("");
        ToastUtil.showLong(getActivity(), "谢谢您宝贵的意见");
    }
}
